package cn.lefull.jpa.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * 此类是基础的实体类
 * MappedSuperclass 此标签会把父类的字段映射到子类上面
 * @author created by Singer email:313402703@qq.com
 * @time 2018/10/12
 * @description
 */
@MappedSuperclass
@Data
public class BaseEntity implements Serializable {


    private static final long serialVersionUID = -279378218553793536L;


    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间",notes ="创建时间" )
    private Integer createTime ;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "修改时间",notes ="修改时间" )
    private Integer updateTime ;

    /**
     * 删除时间
     */
    @Column(name = "delete_time")
    @ApiModelProperty(value = "删除时间",notes ="删除时间" )
    private Integer deleteTime ;

    /**
     * 删除状态
     */
    @Column(name = "delete_status")
    @ApiModelProperty(value = "删除状态",notes ="删除状态" )
    private Integer deleteStatus ;
}
